﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Wpf.Models
{
    public class CommonResult
    {
        public bool Result { get; set; } = true;

        public string ErrMsg { get; set; }

        public object ReturnData { get; set; }
    }

    /// <summary>
    /// 查询统计读卡结果
    /// </summary>
    public class ReadCardForQueCommonResult : CommonResult
    {
        /// <summary>
        /// 读卡后检索条件
        /// </summary>
        public string QueryVal { get; set; }

    }

    /// <summary>
    /// 获取患者信息补充接口结果
    /// </summary>
    public class GetPatSupplyAsynCommonResult : CommonResult
    {
        /// <summary>
        /// 返回类型
        /// </summary>
        public string ReturnType { get; set; }

    }

    /// <summary>
    /// 拉去挂号信息
    /// </summary>
    public class PullRegisterCommonResult: CommonResult
    {
        /// <summary>
        /// 挂号失败是否可以入科
        /// </summary>
        public bool FailInDept { get; set; } = false;

        /// <summary>
        /// 获取挂号信息是否提示
        /// </summary>
        public bool SuccessShowMessage { get; set; } = false;

    }
    /// <summary>
    /// 会诊发送电子病历返回结果
    /// </summary>
    public class ConsultationResult
    {
        public bool SUCCESS { get; set; } = true;
        public string MSG { get; set; }
    }
    /// <summary>
    /// 存储过程返回结果
    /// </summary>
    public class ProResult
    {
        /// <summary>
        /// 结果
        /// </summary>
        public int ERRORCODE { get; set; } = 0;

        /// <summary>
        /// 结果相关msg
        /// </summary>
        public string ERR { get; set; }

    }

    public class EmergencyCommonResult : CommonResult
    {
        /// <summary>
        /// 消息框类型
        /// </summary>
        public string MessageBoxImage { get; set; }

    }
}
